/**
 * Copyright (C) 2017 - 2020 https://github.com/joewee
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bifrost.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.List;

/**
 * 创建订单请求模型
 *
 * @author joewee
 * @version 1.0.0
 * @Date 2017/11/12 22:17
 */
@ApiModel(value = "订单请求对象")
public class OrderRequest {
    @ApiModelProperty(value = "订单行项目", required = true)
    private List<ItemModel> products;
    @ApiModelProperty
    private String location;
    @ApiModelProperty
    private Long carDetailId;
    @ApiModelProperty
    private Long merchantStore;
    @ApiModelProperty
    private Date preorderTime;
    private boolean isNeedService;
    private Long cartId;
    private String shippingType;
    /**
     * 4s店
     */
    private Long serviceShop;
    @ApiModelProperty
    private String orderType;
    private Long state, city, district;

    public OrderRequest() {
    }

    public OrderRequest(String orderType, List<ItemModel> products, String location, Long carDetailId, Long merchantStore, Date preorderTime) {
        this.orderType = orderType;
        this.products = products;
        this.location = location;
        this.carDetailId = carDetailId;
        this.merchantStore = merchantStore;
        this.preorderTime = preorderTime;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public List<ItemModel> getProducts() {
        return products;
    }

    public void setProducts(List<ItemModel> products) {
        this.products = products;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Long getCarDetailId() {
        return carDetailId;
    }

    public void setCarDetailId(Long carDetailId) {
        this.carDetailId = carDetailId;
    }

    public Long getMerchantStore() {
        return merchantStore;
    }

    public void setMerchantStore(Long merchantStore) {
        this.merchantStore = merchantStore;
    }

    public Date getPreorderTime() {
        return preorderTime;
    }

    public void setPreorderTime(Date preorderTime) {
        this.preorderTime = preorderTime;
    }

    public Long getServiceShop() {
        return serviceShop;
    }

    public void setServiceShop(Long serviceShop) {
        this.serviceShop = serviceShop;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public Long getCity() {
        return city;
    }

    public void setCity(Long city) {
        this.city = city;
    }

    public Long getDistrict() {
        return district;
    }

    public void setDistrict(Long district) {
        this.district = district;
    }

    public boolean isNeedService() {
        return isNeedService;
    }

    public void setNeedService(boolean needService) {
        isNeedService = needService;
    }

    public Long getCartId() {
        return cartId;
    }

    public void setCartId(Long cartId) {
        this.cartId = cartId;
    }

    public String getShippingType() {
        return shippingType;
    }

    public void setShippingType(String shippingType) {
        this.shippingType = shippingType;
    }
}
